package com.example.demo.service;

import com.example.demo.entity.Book;

import java.util.List;

public interface BookService {
    List<Book> selectBook();

    List<Book> selectByName(String name);

    List<Book> selectByType(int type);

    void updateBNumber(int number,int id);

    Book selectById(String id);

    void updateBook(Book book);

    void addBook(Book book);

    void delBook(String id);

    int selectBookNB(int bookId);
}
